.class public Lcom/htc/android/footprints/commonui/CommonListDialog;
.super Landroid/app/Dialog;
.source "CommonListDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/htc/android/footprints/commonui/CommonListDialog$1;,
        Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListItem;,
        Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListAdapter;
    }
.end annotation


# instance fields
.field listView:Landroid/widget/ListView;

.field private mIcons:[Landroid/graphics/drawable/Drawable;

.field private mTitleList:[Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2
    .parameter "context"
    .parameter "title"

    .prologue
    const/4 v1, 0x1

    .line 30
    invoke-direct {p0, p1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;)V

    .line 31
    if-nez p2, :cond_0

    .line 32
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/CommonListDialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/Window;->requestFeature(I)Z

    .line 36
    :goto_0
    const v0, 0x7f030023

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/commonui/CommonListDialog;->setContentView(I)V

    .line 37
    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/commonui/CommonListDialog;->setCanceledOnTouchOutside(Z)V

    .line 38
    const v0, 0x7f0c0096

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/commonui/CommonListDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/htc/android/footprints/commonui/CommonListDialog;->listView:Landroid/widget/ListView;

    .line 40
    return-void

    .line 34
    :cond_0
    invoke-virtual {p0, p2}, Lcom/htc/android/footprints/commonui/CommonListDialog;->setTitle(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method static synthetic access$100(Lcom/htc/android/footprints/commonui/CommonListDialog;)[Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/CommonListDialog;->mTitleList:[Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$200(Lcom/htc/android/footprints/commonui/CommonListDialog;)[Landroid/graphics/drawable/Drawable;
    .locals 1
    .parameter "x0"

    .prologue
    .line 24
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/CommonListDialog;->mIcons:[Landroid/graphics/drawable/Drawable;

    return-object v0
.end method


# virtual methods
.method public setItems([Ljava/lang/String;)V
    .locals 3
    .parameter "items"

    .prologue
    .line 48
    iput-object p1, p0, Lcom/htc/android/footprints/commonui/CommonListDialog;->mTitleList:[Ljava/lang/String;

    .line 49
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/CommonListDialog;->listView:Landroid/widget/ListView;

    new-instance v1, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListAdapter;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListAdapter;-><init>(Lcom/htc/android/footprints/commonui/CommonListDialog;Lcom/htc/android/footprints/commonui/CommonListDialog$1;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 50
    return-void
.end method

.method public setItems([Ljava/lang/String;[Landroid/graphics/drawable/Drawable;)V
    .locals 3
    .parameter "items"
    .parameter "icons"

    .prologue
    .line 53
    iput-object p1, p0, Lcom/htc/android/footprints/commonui/CommonListDialog;->mTitleList:[Ljava/lang/String;

    .line 54
    iput-object p2, p0, Lcom/htc/android/footprints/commonui/CommonListDialog;->mIcons:[Landroid/graphics/drawable/Drawable;

    .line 55
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/CommonListDialog;->listView:Landroid/widget/ListView;

    new-instance v1, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListAdapter;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/htc/android/footprints/commonui/CommonListDialog$CommonListAdapter;-><init>(Lcom/htc/android/footprints/commonui/CommonListDialog;Lcom/htc/android/footprints/commonui/CommonListDialog$1;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 70
    return-void
.end method

.method public setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V
    .locals 1
    .parameter "l"

    .prologue
    .line 73
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/CommonListDialog;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, p1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 74
    return-void
.end method
